function loadmusic()
	
	-- audio setup
	music = love.audio.newMusic("audio/music.ogg")
	background = love.audio.newSound("audio/ambient/background.ogg")
		
	audio = 
	{
		musicsource = love.audio.newSource(music),
		bgsource = love.audio.newSource(background),	
		bubbles = love.audio.newSound("audio/ambient/bubbles.ogg"),
		
		waves = 
		{
			love.audio.newSound("audio/ambient/wave1.ogg"),
			love.audio.newSound("audio/ambient/wave2.ogg"),
			love.audio.newSound("audio/ambient/wave3.ogg"),
			love.audio.newSound("audio/ambient/wave4.ogg"),
		},
		
		camo_activate = love.audio.newSound("audio/camo/camo_activate.ogg"),
		camo_save = love.audio.newSound("audio/camo/camo_save.ogg"),
		crustacean_alert = love.audio.newSound("audio/creature/crustacean_alert.ogg"),
		fish_sighted = love.audio.newSound("audio/creature/fish_sighted.ogg"),
		
		eats = 
		{
			love.audio.newSound("audio/creature/octopus_eat1.ogg"),
			love.audio.newSound("audio/creature/octopus_eat2.ogg"),
		},
		
		jets = 
		{
			love.audio.newSound("audio/creature/octopus_jet1.ogg"),
			love.audio.newSound("audio/creature/octopus_jet2.ogg"),
			love.audio.newSound("audio/creature/octopus_jet3.ogg"),
			love.audio.newSound("audio/creature/octopus_jet4.ogg"),
			love.audio.newSound("audio/creature/octopus_jet5.ogg"),
			love.audio.newSound("audio/creature/octopus_jet6.ogg"),
		},
		
		octopus_spikes = love.audio.newSound("audio/creature/octopus_spikes.ogg"),
		shark_alert = love.audio.newSound("audio/creature/shark_alert.ogg"),
		shark_bite = love.audio.newSound("audio/creature/shark_bite.ogg")
	}
	
	audio.musicsource:setLooping(true)
	audio.bgsource:setLooping(true)
	audio.musicsource:setVolume(0.3)
	love.audio.play(audio.musicsource)
	love.audio.play(audio.bgsource)
	
end




function randint(min, max)
	local randresult = math.floor(math.random(min, max) + 0.5) 
	return randresult
end

